<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head id="MyHead">
    <script src="/resources/Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="/resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
    <link href="/resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="/resources/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="/resources/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <link href="/resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
    <script src="/resources/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="/resources/Res/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="/resources/Res/easyui/themes/icon.css" rel="stylesheet"
        type="text/css" />
    <link href="/resources/Res/easyui/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />

    <title>

</title>
    
    <script type="text/javascript">

        $(function () {
            

        });
              

    </script>

    <script type='text/javascript'>
        function ajaxFrom(form, url) {
            progressComm();
            $.ajax({
                url: url,
                type: "Post",
                data: $(form).serialize(),
                dataType: "json",
                success: function (data) {
                    $.messager.progress('close');
                    if ($.messager) {
                        $.messager.defaults.cancel = '返回';
                        $.messager.defaults.ok = '继续';

                        $.messager.confirm('操作提示', data.msg, function (r) {
                            if (!r) {
                                window.location.href = 'javascript:history.go(-1)';
                                //alert("aaaaaaaa");
                            }
                        });
                    }

                }
            });

        }

        $(function () {
            
            $("form").submit(function (form) {
                if (form.result) {
                    ajaxFrom(this, this.action);
                }
                return false;
            });
        });
    </script>
</head>
<body>
    <div class="mbx">
        
      创建 短信管理

    </div>
    <form action="doMsgCreate" method="post">
    
    <fieldset>
        <legend>
            <input class="submitcss" type="submit" value="创建" />
            <input class="submitcss" type="button" onclick="BackList('Message/D_Msg_Manage.jsp')" value="返回" />
        </legend>
        <div class="bigdiv">
           <div class="editor-label">
                <label for="msgCode">短信编号</label>
            </div>
            <div class="editor-field">
               <input type="text" id='msgCode' name='msgCode' value='${msgCode }' readonly="readonly"/>
            </div>  
            <div class="editor-label">
                <label for="msgTitle">短信标题</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过200" data-val-length-max="200" id="msgTitle" name="msgTitle" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="msgTitle" data-valmsg-replace="true"></span>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <label for="msgContent">短信内容</label>
            </div>
            <div class="textarea-box">
                <textarea cols="20" data-val="true" data-val-length="长度不可超过4000" data-val-length-max="4000" id="msgContent" name="msgContent" rows="2">
</textarea>
                <span class="field-validation-valid" data-valmsg-for="msgContent" data-valmsg-replace="true"></span>
            </div>
        </div>
    </fieldset>

    </form>
</body>
</html>
